<template>
  <div>
    <!-- 面包屑导航 -->
    <el-breadcrumb separator="/">
      <el-breadcrumb-item :to="{ path: '/home' }">
        <i class="el-icon-s-home"></i>
        首页
      </el-breadcrumb-item>
      <el-breadcrumb-item :to="{ path: '/shop/list' }">
        <i class="el-icon-present"></i> 
        商品管理
      </el-breadcrumb-item>
      <!-- 当前 -->
      <el-breadcrumb-item>设置</el-breadcrumb-item>
    </el-breadcrumb>
    <div id="all">
      <div>
          <el-form ref="form" :model="form" label-width="120px" :rules="rules"  >
            <el-form-item label="活动名称:" prop="name">
              <el-input v-model="form.name"  placeholder="list.name">
                <el-button slot="append" >分钟</el-button>
              </el-input>
            </el-form-item>
            <el-form-item >
              <el-button type="primary" >提交</el-button>
            </el-form-item>
          </el-form>
      </div>
    </div>
      
  </div>
</template>
<script>
export default{
  data(){
    return {
      form: {
        name:'',
      },
      rules: {
        name: [
          { required: true, message: '请输入活动名称', trigger: 'blur' },
          { min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur' }
        ],
      },
    }
  },
  methods:{

  }
}
</script>
<style scoped>
#all{
  width: 80%;
  margin: 140px auto;
  height: 200px;
}
#top{
  width: 80%;
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

</style>